//
//  VideoH264Encoder.h
//  OneToOne
//
//  Created by ByteDance on 2023/2/23.
//

#import <Foundation/Foundation.h>
#import <CoreMedia/CoreMedia.h>
#import <VideoToolbox/VideoToolbox.h>
NS_ASSUME_NONNULL_BEGIN

@interface VideoH264Encoder : NSObject
- (void)gotBlockData:(NSData *)blockData ;
- (void)gotSpsData:(NSData *)spsData ppsData:(NSData *)ppsData;
- (instancetype)initWithVedioWidth:(int32_t)videoWidth vedioHeight:(int32_t)videoHeight;
- (void)encodeCMSampleBuffer:(CMSampleBufferRef)sampleBuffer h264DataBlock:(void(^)(NSData *))h264DataBlock;
@end

NS_ASSUME_NONNULL_END
